package sporter;

import org.junit.Test;

public class TestFn {
    @Test
    public void TestFn() {
        BasketballPlayer basketballPlayer = new BasketballPlayer();
        basketballPlayer.setName("张三");
        basketballPlayer.setAge(28);
        System.out.println(basketballPlayer.getAge()+","+basketballPlayer.getName());
        basketballPlayer.eat();
        basketballPlayer.Study();


        PingPangPlayer pingPangPlayer=new PingPangPlayer();
        pingPangPlayer.setAge(18);
        pingPangPlayer.setName("李四");
        System.out.println(pingPangPlayer.getAge()+","+pingPangPlayer.getName());
        pingPangPlayer.eat();
        pingPangPlayer.Study();
        pingPangPlayer.speak();
    }

}
